package mn.idax.exchange.otc.mapper;

import mn.idax.exchange.otc.entity.OTCArbitration;
import mn.idax.exchange.otc.entity.OTCArbitrationExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface OTCArbitrationMapper {
    int countByExample(OTCArbitrationExample example);

    int deleteByExample(OTCArbitrationExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(OTCArbitration record);

    int insertSelective(OTCArbitration record);

    List<OTCArbitration> selectByExampleWithRowbounds(OTCArbitrationExample example, RowBounds rowBounds);

    List<OTCArbitration> selectByExample(OTCArbitrationExample example);

    OTCArbitration selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") OTCArbitration record, @Param("example") OTCArbitrationExample example);

    int updateByExample(@Param("record") OTCArbitration record, @Param("example") OTCArbitrationExample example);

    int updateByPrimaryKeySelective(OTCArbitration record);

    int updateByPrimaryKey(OTCArbitration record);

    //通过uniquekey查仲裁表
    OTCArbitration queryArbitrationByUniqueKey(@Param("chatRoom") String chatRoom);

    //更新CustomerJoined为true
    int updateCustomerJoined(@Param("orderid")Integer orderid);
}